{% extends "base.html" %}

{% block nav %}
<li class="active">
    <i class="fa fa-mobile-phone "></i> 远程文件上传
</li>
{% endblock %}

{% block content %}

<div class="row">
  <div class="col-md-12">
	<form action="/ops/upload" method="POST" enctype="multipart/form-data" >
  		<span style="padding-left:20px"><label>远程服务器地址：</label></span>
  		<select name='ip'>
  		{% if result %}
  			{% if result['data'] %}
  				{% for ip in result['data'] %}
		  			<option>{{ ip }}</option>
		  		{% endfor %}
		  	{% endif %}
		{% endif %}
		</select>
		<br>
	  <span style="padding-left:20px"><label>文件上传：</label></span>
	  <div style="padding-left:20px">
		  <input type="file" id="file" name="file" title="Search" class="btn-primary">
	  </div >
		  <br>
  		<span style="padding-left:20px"><input id='uploadButton' class="btn btn-primary btn-sm" type="submit" value="上传文件"></span>
  	</form>
  	<hr>
  </div>


</div>
{% endblock %}





